package com.freesun.autoui.product.healthcenter.pagemodel;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * desc:logoutmodel
 * Created by yangfei on 13-12-31.
 */
public class LogOutPageModel {

    private static Logger log = LoggerFactory.getLogger(LogOutPageModel.class.getClass());

    /**
     * @desc 查找退出id是否存在
     * @param driver
     */
    public static WebElement logOut(WebDriver driver){
        //submit
        WebElement logout =driver.findElement(By.id("btn_logout"));
        log.warn("发现!"+logout);
        return logout;
    }

}
